Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(eslint): add unicorn Switch rules #2881

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Sep 20, 2023

@csouchet csouchet added chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first refactoring Code refactoring labels Sep 20, 2023
@github-actions
Copy link

github-actions bot commented Sep 20, 2023

🎊 PR Preview 18e4009 has been successfully built and deployed to https://process-analytics-bpmn-visualization-js-doc_preview-pr-2881.surge.sh

🕐 Build time: 0.021s

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Sep 20, 2023

🎊 PR Preview 18e4009 has been successfully built and deployed to https://process-analytics-bpmn-visualization-js-demo_preview-pr-2881.surge.sh

🕐 Build time: 0.016s

🤖 By surge-preview

- unicorn/no-useless-switch-case
- unicorn/prefer-switch
- unicorn/switch-case-braces
@csouchet csouchet removed the depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first label Sep 25, 2023
@csouchet csouchet marked this pull request as ready for review September 25, 2023 14:19
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

case BpmnStyleIdentifier.IS_INITIATING: // message flow icon
}
case BpmnStyleIdentifier.IS_INITIATING: {
// message flow icon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: may be clearer with the comment on the top of the case entry. This is what we generally do in the code.

@csouchet csouchet enabled auto-merge (squash) September 26, 2023 07:40
@csouchet csouchet merged commit 685b67c into master Sep 26, 2023
21 checks passed
@csouchet csouchet deleted the 2742-add_unicorn_switch_rules branch September 26, 2023 07:41
@sonarcloud
Copy link

sonarcloud bot commented Sep 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) refactoring Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants